/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kmcsoft.goldshop.model.master;

import com.kmcsoft.emaster.entity.TrackableEntity;
import javax.jdo.annotations.FetchGroup;
import javax.jdo.annotations.FetchGroups;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

/**
 *
 * @author kmcsoft02
 */
@PersistenceCapable(detachable = "true", table = "SHOP_PAWNHISTORY")
@FetchGroups(value = {
    @FetchGroup(name = "detach_PawnHistory_All", members = {
        @Persistent(name = "pawn"),
        @Persistent(name = "createdBy")}),
    @FetchGroup(name = "detach_PawnHistory_CreatedBy", members = {
        @Persistent(name = "createdBy")}),
    @FetchGroup(name = "detach_PawnHistory_Pawn", members = {
        @Persistent(name = "pawn")})
})
public class PawnHistory extends TrackableEntity {

    @Persistent
    private int status;
    @Persistent
    private double amount;
    @Persistent
    private String note;
    @Persistent
    private Pawn pawn;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Pawn getPawn() {
        return pawn;
    }

    public void setPawn(Pawn pawn) {
        this.pawn = pawn;
    }
}
